package camel.corp.universalcopy;

import android.view.ActionMode;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.TextView;
import com.camel.corp.universalcopy.C;
import com.camel.corp.universalcopy.CopyActivity;
import com.camel.corp.universalcopy.o;
import com.crashlytics.android.Crashlytics;

class d implements ActionMode.Callback {
  private TextView a;
  
  private d(CopyActivity paramCopyActivity, TextView paramTextView) { this.a = paramTextView; }
  
  public boolean onActionItemClicked(ActionMode paramActionMode, MenuItem paramMenuItem) {
    if (paramMenuItem.getItemId() != 16908321)
      return false; 
    CopyActivity.a(this.b, this.a, new C(this));
    return true;
  }
  
  public boolean onCreateActionMode(ActionMode paramActionMode, Menu paramMenu) { return true; }
  
  public void onDestroyActionMode(ActionMode paramActionMode) {
    if (CopyActivity.g(this.b) != null && !CopyActivity.e(this.b)) {
      CopyActivity.c(this.b, true);
      try {
        CopyActivity.g(this.b).dismiss();
      } catch (IllegalArgumentException paramActionMode) {
        Crashlytics.a(paramActionMode);
      } 
    } 
    CopyActivity.c(this.b, false);
  }
  
  public boolean onPrepareActionMode(ActionMode paramActionMode, Menu paramMenu) {
    for (byte b1 = 0; b1 < paramMenu.size(); b1++)
      paramMenu.getItem(b1).setVisible(false); 
    return false;
  }
}


/* Location:              D:\Users\alienware\AndroidStudioProjects\Lazero\sample\sampler\classes-dex2jar\com\camel.jar!\camel\cor\\universalcopy\CopyActivity$d.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       1.0.7
 */